// 定义存储token的方法
const tokenId = 'token - name'
export const setToken = (token) => {
  return localStorage.setItem(tokenId, token)
}
export const getToken = () => {
  return localStorage.getItem(tokenId)
}

export const clearToken = () => {
  localStorage.removeItem(tokenId)
}
